/**
 * 通用css样式布局处理
 * fzs
 */

/** 基础通用 **/

.pt5 {
  padding-top: 5px;
}

.pr5 {
  padding-right: 5px;
}

.pb5 {
  padding-bottom: 5px;
}

.pl20 {
  padding-left: 20px;
}

.mt5 {
  margin-top: 5px;
}

.mr5 {
  margin-right: 5px;
}

.mb5 {
  margin-bottom: 5px;
}

.mb8 {
  margin-bottom: 8px;
}

.ml5 {
  margin-left: 5px;
}

.mt10 {
  margin-top: 10px;
}

.mr10 {
  margin-right: 10px;
}

.mb10 {
  margin-bottom: 10px;
}

.ml10 {
  margin-left: 10px;
}

.ml20 {
  margin-left: 20px;
}

.mt20 {
  margin-top: 20px;
}

.mr20 {
  margin-right: 20px;
}

.mb20 {
  margin-bottom: 20px;
}

.mr40 {
  margin-right: 40px;
}
.ml40 {
  margin-left: 40px;
}

.el-dialog:not(.is-fullscreen) {
  margin-top: 6vh !important;
}

.el-table {
  .el-table__header-wrapper,
  .el-table__fixed-header-wrapper {
    th {
      word-break: break-word;
      background-color: #f8f8f9;
      color: #515a6e;
      height: 40px;
      font-size: 13px;
    }
  }
  .el-table__body-wrapper {
    .el-button [class*='el-icon-'] + span {
      margin-left: 1px;
    }
  }
  .el-table__body tr:hover > td {
    background-color: #ecf5ff !important;
  }
  .el-table__body tr.current-row > td {
    background-color: #ecf5ff !important;
  }
}

/** 表单布局 **/

.form-header {
  font-size: 15px;
  color: #6379bb;
  border-bottom: 1px solid #ddd;
  margin: 8px 10px 25px 10px;
  padding-bottom: 5px;
}

/** 表格布局 **/

.pagination-container {
  position: relative;
  height: 25px;
  margin-bottom: 10px;
  margin-top: 15px;
  padding: 10px 20px !important;
}

/* tree border */

.tree-border {
  margin-top: 5px;
  border: 1px solid #e5e6e7;
  background: #ffffff none;
  border-radius: 4px;
}

.pagination-container .el-pagination {
  right: 0;
  position: absolute;
}

.el-table .fixed-width .el-button--mini {
  color: #409eff;
  padding-left: 0;
  padding-right: 0;
  width: inherit;
}

.el-tree-node__content > .el-checkbox {
  margin-right: 8px;
}

.list-group-striped > .list-group-item {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}

.list-group {
  padding-left: 0px;
  list-style: none;
}

.list-group-item {
  border-bottom: 1px solid #e7eaec;
  border-top: 1px solid #e7eaec;
  margin-bottom: -1px;
  padding: 11px 0px;
  font-size: 13px;
}

.pull-right {
  float: right !important;
}

.el-card__header {
  padding: 14px 15px 7px;
  min-height: 40px;
}

.el-card__body {
  padding: 15px 20px 20px 20px;
}

.card-box {
  padding-right: 15px;
  padding-left: 15px;
  margin-bottom: 10px;
}

/*InputNumber*/
.el-input-number__decrease,
.el-input-number__increase {
  top: 2px;
}

/* button color */
.el-button-search.is-active,
.el-button-search:active {
  background: #20b2aa;
  border-color: #20b2aa;
  color: #ffffff;
}

.el-button-search:focus,
.el-button-search:hover {
  background: #48d1cc;
  border-color: #48d1cc;
  color: #ffffff;
}

.el-button-search {
  background-color: #20b2aa;
  border-color: #20b2aa;
  color: #ffffff;
}

/* 上中下布局css */
.layout-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  .layout-header {
    max-height: 200px;
  }
  .layout-main {
    padding-top: 10px;
    flex: 1;
    height: 100%;
    overflow: hidden;
  }
  .layout-footer {
    padding-top: 5px;
    padding-bottom: 5px;
    padding-right: 1.5rem;
  }
}

.danger-color {
  color: #f56c6c;
}

/**svg icon**/

.svg-icon {
  margin-right: 8px;
}
// when menu collapsed
.el-menu--vertical {
  & > .el-menu {
    .svg-icon {
      margin-right: 8px;
    }
  }
}

/* /* 抽屉滚动样式覆盖 */
.el-drawer__body {
  overflow: auto;
}

/**修改全局的滚动条*/
/**滚动条的宽度*/
::-webkit-scrollbar {
  width: 5px;
}
//滚动条的滑块
::-webkit-scrollbar-thumb {
  border-radius: 2px;
}

// 修改全局input 默认样式
input::-webkit-input-placeholder {
  /* WebKit browsers */
  color: #b4bccc;
}
input:-moz-placeholder {
  /* Mozilla Firefox 4 to 18 */
  color: #b4bccc;
}
input::-moz-placeholder {
  /* Mozilla Firefox 19+ */
  color: #b4bccc;
}
input:-ms-input-placeholder {
  /* Internet Explorer 10+ */
  color: #b4bccc;
}
